package com.unt.javawebunt.dto;

import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Patient Atributes
 * 
 * @author rzottola
 * @since 27/05/2014
 * @version 1.0
 * 
 */
@Entity
@Table(name="appointments",catalog="db_java_web")
public class AppointmentDTO {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	@Column(name = "DATE")
	private Calendar date;
	@Column(name = "COMMENT")
	private String comment;
	@Column(name = "STATE")
	private Boolean state;
	
	@ManyToOne
    @JoinColumn(name="ID_PATIENT")
	private PatientDTO patient;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Calendar getFecha() {
		return date;
	}

	public void setFecha(Calendar fecha) {
		this.date = fecha;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Boolean getState() {
		return state;
	}

	public void setState(Boolean state) {
		this.state = state;
	}

	public Calendar getDate() {
		return date;
	}

	public void setDate(Calendar date) {
		this.date = date;
	}

	public PatientDTO getPatient() {
		return patient;
	}

	public void setPatient(PatientDTO patient) {
		this.patient = patient;
	}

}
